﻿using System;
using QFramework;
using UnityEngine;

namespace Gp.Scripts.Core
{
    public class ShowStartScreen : MonoBehaviour
    {
        private IUnRegister _unRegister;
        // private void Start()
        // {
        //     _unRegisterGlobal.RegisterEvent<Event_System.GameStart>(OnGameStart);
        // }
        //
        // private void OnGameStart(Event_System.GameStart gameStart)
        // {
        //     Debug.Log("ShowStartScreen");
        //     Global.Get<GUIManager>().JumpPanel(ConstPanelId.GameEntryPanel);     
        //     Global.UnRegisterEvent<Event_System.GameStart>(OnGameStart);
        // }

        public void Show()
        {
            Global.Get<GUIManager>().JumpPanel(ConstPanelId.GameEntryPanel);
        }
    }
}